1.创建make:migration
php artisan make:migration CreateItemTable
Created Migration: 2017_10_17_053751_CreateItemTable
会根据日期和名称生成文件
D:\code\php_laravel\demo1\database\migrations\2017_10_17_053751_CreateItemTable.php

2.数据表生的定义
php artisan migrate:install
生成数据表migrations

4.查询状态
D:\code\php_laravel\demo1 (master)
λ php artisan migrate:status
+------+------------------------------------------------+
| Ran? | Migration                                      |
+------+------------------------------------------------+
| N    | 2014_10_12_000000_create_users_table           |
| N    | 2014_10_12_100000_create_password_resets_table |
| N    | 2017_10_17_053751_CreateItemTable              |
+------+------------------------------------------------+

5.根据代码生成数据库
D:\code\php_laravel\demo1 (master)
λ php artisan migrate
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table
Migrating: 2017_10_17_053751_CreateItemTable
Migrated:  2017_10_17_053751_CreateItemTable
再次查询状态，已经生成
D:\code\php_laravel\demo1 (master)
λ php artisan migrate:status
+------+------------------------------------------------+
| Ran? | Migration                                      |
+------+------------------------------------------------+
| Y    | 2014_10_12_000000_create_users_table           |
| Y    | 2014_10_12_100000_create_password_resets_table |
| Y    | 2017_10_17_053751_CreateItemTable              |
+------+------------------------------------------------+

6.创建参数
php artisan make:migration create_authors_table --create --table authors
自动创建了部分代码
再次执行
php artisan migrate
生成数据表

7.rollback回滚
 php artisan migrate:rollback